import {defineComponent, h, onMounted, onUnmounted,ref,watch} from 'vue';
export const CanvasTable=defineComponent({
  name:"CanvasTable",
  setup(){
    const canvas = ref(null)
    const container=ref(null)
    const handleClick =()=>{}
    const data = ref()
    const drawTable = ()=>{}

    onMounted(() => {
      drawTable()
  
    });

    onUnmounted(()=>{

    })

    watch(data,()=>{
      ()=>drawTable()
    })

    return{
      handleClick,
      canvas,
      container,
      data,
      drawTable,
    }
  },
  render(){
    return h('div',{},this.$slots.default?.())
  }
})